package com.ruoyi.project.outpatient.service.impl;

import com.ruoyi.project.hissystem.domain.HisDepartment;
import com.ruoyi.project.outpatient.domain.OutPatient;
import com.ruoyi.project.outpatient.mapper.OutPatientMapper;
import com.ruoyi.project.outpatient.service.OutPatientService;
import com.ruoyi.project.system.domain.SysDept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OutPatientServiceImpl implements OutPatientService {

    @Autowired
    private OutPatientMapper outPatientMapper;


    @Override
    public List<OutPatient> selectPatientList(OutPatient outPatient) {
        return outPatientMapper.selectPatientList(outPatient);
    }

    @Override
    public List<HisDepartment> selectDeptList() {
        return outPatientMapper.selectDeptList();
    }

    @Override
    public Integer insertOutpatientInfo(OutPatient outPatient) {
        return outPatientMapper.insertOutpatientInfo(outPatient);
    }
    @Override
    public List<OutPatient> selectRegisterInfo2() {
        return outPatientMapper.selectRegisterInfo2();
    }
}
